#!/bin/bash

LOGFILE="scuolanormalepi.log2.check scuolasannapi.log2.check"

for FILE in $LOGFILE ; do
    if ! ./bibaccess --query $FILE ; then
    exit 1
    fi
    if ! ./bibaccess $FILE --loan ; then
    exit 1
fi
done

if ! ./bibaccess $LOGFILE --query ; then
    exit 1
fi

if ! ./bibaccess --loan $LOGFILE ; then
    exit 1
fi

LOGFILE="scuolanormalepi.log3.check scuolasannapi.log3.check regionetoscana.log3.check"
if ! ./bibaccess  $LOGFILE --query ; then
    exit 1
fi

if ! ./bibaccess --loan $LOGFILE ; then
    exit 1
fi



exit 0
